<?php
// 曾科修改，之前是王大任所写
require_once '../../configs/common.games.php';//加载数据库类文件

$url = new Url();
$db = new Data();
$params = json_decode(base64_decode($url->get('message')));
$subject = mysql_real_escape_string($params[0]);
$body = mysql_real_escape_string($params[1]);

$lordname = mysql_real_escape_string(base64_decode($url->get('lordname')));
$query = $db->query("select u_id from player_info where `p_nickname`='".$lordname."'");
$m = $db->fetch_array($query);
if (!$m) {
	echo "0";
} else {
	$UserId = $m['u_id'];
	Common::IngameMail2($memcache, $db, $UserId, $lordname, trim($subject), trim($body), ":help");
	echo "1";
}
?>